package test.excel.config;

import javax.xml.bind.annotation.XmlAttribute;

public class ColumnConfig {
    @XmlAttribute
    private Integer index;

    @XmlAttribute
    private String sheetColName;

    @XmlAttribute(required = true)
    private String tableColName;

    @XmlAttribute(required = true)
    private int type;

    public ColumnConfig() {
        // empty
    }

    public ColumnConfig(Integer index, String tableColName, int type) {
        this.index = index;
        this.tableColName = tableColName;
        this.type = type;
    }

    public ColumnConfig(String sheetColName, String tableColName, int type) {
        this.sheetColName = sheetColName;
        this.tableColName = tableColName;
        this.type = type;
    }

    public Integer getIndex() {
        return index;
    }

    public String getSheetColName() {
        return sheetColName;
    }

    public String getTableColName() {
        return tableColName;
    }

    public int getType() {
		return type;
	}
}
